# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

Rolename.create(:name => "Product Owner")
Rolename.create(:name => "Scrummaster")
Rolename.create(:name => "Developer")
Rolename.create(:name => "Company")

UserStoryState.create(:status => "Offen")
UserStoryState.create(:status => "Entwurf")
UserStoryState.create(:status => "Im&nbsp;Sprintbacklog")
UserStoryState.create(:status => "Zu&nbsp;pr&uuml;fen")
UserStoryState.create(:status => "Abgenommen")

UserStoryPriority.create(:priority => "High")
UserStoryPriority.create(:priority => "Middle")
UserStoryPriority.create(:priority => "Low")

#UserStoryRating.create(:rating => 0)
UserStoryRating.create(:rating => 1)
UserStoryRating.create(:rating => 2)
UserStoryRating.create(:rating => 3)
UserStoryRating.create(:rating => 5)
UserStoryRating.create(:rating => 8)
UserStoryRating.create(:rating => 13)
UserStoryRating.create(:rating => 21)
UserStoryRating.create(:rating => 34)
UserStoryRating.create(:rating => 55)
UserStoryRating.create(:rating => 89)

Percentage.create(:percentage => 10)
Percentage.create(:percentage => 20)
Percentage.create(:percentage => 30)
Percentage.create(:percentage => 40)
Percentage.create(:percentage => 50)
Percentage.create(:percentage => 60)
Percentage.create(:percentage => 70)
Percentage.create(:percentage => 80)
Percentage.create(:percentage => 90)
Percentage.create(:percentage => 100)

Company.create(:name => "test", :address => "teststrasse123", :account => "12345678" )
Company.create(:name => "jogi", :address => "Bierstrasse", :account => "87654321" )

comp = Company.new
comp.name = "myScrum Ultra Inc."
comp.address = "bei mir zuhause"
comp.account = "12312312"
comp.save

proj = Project.new 
proj.name = "Testprojekt"
proj.sprint_id = 1
proj.company_id = comp.id
proj.sprint_length = 2
proj.max_user_stories = 100
proj.save

proj2 = Project.new
proj2.name = "Dummyprojekt"
proj2.sprint_id = 1
proj2.company_id = comp.id
proj2.sprint_length = 3
proj2.max_user_stories = 100
proj2.save

proj3 = Project.new
proj3.name = "myScrum"
proj3.sprint_id = 1
proj3.company_id = comp.id
proj3.sprint_length = 2
proj3.max_user_stories = 100
proj3.save

proj4 = Project.new
proj4.name = "Benchmark"
proj4.sprint_id = 1
proj4.company_id = comp.id
proj4.sprint_length = 1
proj4.max_user_stories = 100
proj4.save

proj5 = Project.new
proj5.name = "Human Resource Tool"
proj5.sprint_id = 1
proj5.company_id = comp.id
proj5.sprint_length = 2
proj5.max_user_stories = 100
proj5.save

=begin 
 ==== Sprint Backlog Columns
=end
SprintBacklogColumn.create(:project_id => proj.id, :column_position => 1, :name => "Offen" )
SprintBacklogColumn.create(:project_id => proj.id, :column_position => 2, :name => "In--leer--Bearbeitung" )
SprintBacklogColumn.create(:project_id => proj.id, :column_position => 3, :name => "Ready" )
SprintBacklogColumn.create(:project_id => proj.id, :column_position => 4, :name => "Abgeschlossen" )

=begin 
 ==== BENUTZER ANLEGEN PROJEKT 1
=end
User.create(:name => "Codemaschine1", :email => "Codemaschine1@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id , :company_pid => comp.id )
User.create(:name => "HansHubbel", :email => "HansHubbel@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Unemployed User", :email => "testasdf@test.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Pausenkoenig", :email => "test2asdf@test2.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Manuel Neuer", :email => "Neuer@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Phillipp Lahm", :email => "Phillipp_Lahm@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Miroslav Klose", :email => "Miroslav@test.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Maria Goetze", :email => "Maria.Goetze@test2.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Andre Schuerrle", :email => "Andre.S@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Donald E. Knuth", :email => "Donald.Knuth@code.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Alan Touring", :email => "Alan.Touring@test.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Steve Wozniak", :email => "Steve.Wozniak@test2.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Bill Gates", :email => "BillGatesk@microsoft.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Steve Ballmer", :email => "SteveBallmerk@microsoft.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )
User.create(:name => "Steven Elop", :email => "StevenElopk@micronokia.com", :password => "testtest", :password_confirmation => "testtest", :current_project_id => proj.id, :company_pid => comp.id )

=begin 
 ==== BENUTZER ANLEGEN PROJEKT 2
=end
User.create(:name => "Han Solo", :email => "Han.Solo@code.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Luke Skywalker", :email => "Luke_Skywalker@test.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Darth Vader", :email => "Darth.Vader@imperium.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Jabba the Hutt", :email => "Jabba.the.Hutt@tatooine.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Boba Fett", :email => "Boba-Fett@microsoft.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Lando Calrissian", :email => "Lando.Calrissian@micronokia.com", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )

=begin 
 ==== BENUTZER ANLEGEN PROJEKT 3
=end
User.create(:name => "Fabian Giefer", :email => "FabianGiefer@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Tobias Levels", :email => "tobi.levels@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Martin Latka", :email => "Martin.Latka@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Stelios Mazelas", :email => "mazelas@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Christian Weber", :email => "Christian-Weber@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Andreas Lambertz", :email => "lumpi.lambertz@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Adam Bodzek", :email => "Bodze@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Mathis Bolly", :email => "rotekarte@f95.de", :password => "testtest", :password_confirmation => "testtest",  :company_pid => comp.id )
User.create(:name => "Charlison Benshop", :email => "cbenshop@f95.de", :password => "testtest", :password_confirmation => "testtest",  :company_pid => comp.id )
User.create(:name => "Ioannis Gianniotas", :email => "Gianniotas@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )
User.create(:name => "Michael Rensing", :email => "Rensing@f95.de", :password => "testtest", :password_confirmation => "testtest",  :company_pid => comp.id )
User.create(:name => "Oliver Reck", :email => "Reck@f95.de", :password => "testtest", :password_confirmation => "testtest", :company_pid => comp.id )

ProjectToUser.create(:percentage_id => 1, :project_id => proj.id, :rolename_id => 1, :user_id => 1)
ProjectToUser.create(:percentage_id => 4, :project_id => proj.id, :rolename_id => 1, :user_id => 2)
ProjectToUser.create(:percentage_id => 3, :project_id => proj.id, :rolename_id => 2, :user_id => 3)
ProjectToUser.create(:percentage_id => 5, :project_id => proj.id, :rolename_id => 3, :user_id => 5)
ProjectToUser.create(:percentage_id => 2, :project_id => proj.id, :rolename_id => 2, :user_id => 6)
ProjectToUser.create(:percentage_id => 3, :project_id => proj2.id, :rolename_id => 1, :user_id => 1)
ProjectToUser.create(:percentage_id => 4, :project_id => proj2.id, :rolename_id => 1, :user_id => 4)
ProjectToUser.create(:percentage_id => 3, :project_id => proj2.id, :rolename_id => 2, :user_id => 3)
ProjectToUser.create(:percentage_id => 5, :project_id => proj2.id, :rolename_id => 3, :user_id => 5)
ProjectToUser.create(:percentage_id => 2, :project_id => proj2.id, :rolename_id => 2, :user_id => 6)

=begin 
  ==== PRODUCT BACKLOG ANLEGEN
=end
pb = ProductBacklog.new
pb.project_pid = proj.id
pb.save

pb2 = ProductBacklog.new
pb2.project_pid = proj2.id
pb2.save

pb3 = ProductBacklog.new
pb3.project_pid = proj3.id
pb3.save

pb4 = ProductBacklog.new
pb4.project_pid = proj4.id
pb4.save

pb5 = ProductBacklog.new
pb5.project_pid = proj5.id
pb5.save

=begin 
  ==== SPRINT BACKLOG ANLEGEN
=end
sprint1 = SprintBacklog.new
sprint1.project_pid = proj.id
sprint1.sprint_start = DateTime.parse("19/11/2013", "%d/%m/%Y")
sprint1.sprint_end = DateTime.parse("30/11/2013", "%d/%m/%Y")
sprint1.save

sprint2 = SprintBacklog.new
sprint2.project_pid = proj.id
sprint2.sprint_start = DateTime.parse("30/11/2013", "%d/%m/%Y")
sprint2.sprint_end = DateTime.parse("14/12/2013", "%d/%m/%Y")
sprint2.save

sprint3 = SprintBacklog.new
sprint3.project_pid = proj.id
sprint3.sprint_start = DateTime.parse("14/12/2013", "%d/%m/%Y")
sprint3.sprint_end = DateTime.parse("28/12/2013", "%d/%m/%Y")
sprint3.save

sprint4 = SprintBacklog.new
sprint4.project_pid = proj.id
sprint4.sprint_start = DateTime.parse("28/12/2013", "%d/%m/%Y")
sprint4.sprint_end = DateTime.parse("11/01/2014", "%d/%m/%Y")
sprint4.save

sprint5 = SprintBacklog.new
sprint5.project_pid = proj2.id
sprint5.sprint_start = DateTime.parse("11/01/2014", "%d/%m/%Y")
sprint5.sprint_end = DateTime.parse("25/01/2014", "%d/%m/%Y") 
sprint5.save

sprint6 = SprintBacklog.new
sprint6.project_pid = proj3.id
sprint6.sprint_start = DateTime.parse("11/01/2014", "%d/%m/%Y")
sprint6.sprint_end = DateTime.parse("25/01/2014", "%d/%m/%Y") 
sprint6.save

sprint7 = SprintBacklog.new
sprint7.project_pid = proj4.id
sprint7.sprint_start = DateTime.parse("11/01/2014", "%d/%m/%Y")
sprint7.sprint_end = DateTime.parse("25/01/2014", "%d/%m/%Y") 
sprint7.save

sprint8 = SprintBacklog.new
sprint8.project_pid = proj5.id
sprint8.sprint_start = DateTime.parse("11/01/2014", "%d/%m/%Y")
sprint8.sprint_end = DateTime.parse("25/01/2014", "%d/%m/%Y") 
sprint8.save

column = SprintBacklogColumn.new
column.name = "Offen"
column.project_id = proj2.id
column.save

column = SprintBacklogColumn.new
column.name = "In--leer--Bearbeitung"
column.project_id = proj2.id
column.save

column = SprintBacklogColumn.new
column.name = "Fertig"
column.project_id = proj2.id
column.save

column = SprintBacklogColumn.new
column.name = "Offen"
column.project_id = proj3.id
column.save

column = SprintBacklogColumn.new
column.name = "In--leer--Bearbeitung"
column.project_id = proj3.id
column.save

column = SprintBacklogColumn.new
column.name = "Fertig"
column.project_id = proj3.id
column.save

column = SprintBacklogColumn.new
column.name = "Offen"
column.project_id = proj4.id
column.save

column = SprintBacklogColumn.new
column.name = "In--leer--Bearbeitung"
column.project_id = proj4.id
column.save

column = SprintBacklogColumn.new
column.name = "Fertig"
column.project_id = proj4.id
column.save

column = SprintBacklogColumn.new
column.name = "Offen"
column.project_id = proj5.id
column.save

column = SprintBacklogColumn.new
column.name = "In--leer--Bearbeitung"
column.project_id = proj5.id
column.save

column = SprintBacklogColumn.new
column.name = "Fertig"
column.project_id = proj5.id
column.save

Questionnaire.create(:question => "Wer muss <#verb>?")
Questionnaire.create(:question => "Wann soll <#verb> stattfinden?")
Questionnaire.create(:question => "Wann ist <#verb> komplett abgeschlossen?")
Questionnaire.create(:question => "Wie kann <#verb> genau durchgef&uuml;hrt werden?")
Questionnaire.create(:question => "Wie h&auml;ufig/oft/gro&szlig;/schnell soll <#verb> sein?")
Questionnaire.create(:question => "Wo/wie kann gepr&uuml;ft werden, ob <#verb> durchgef&uuml;hrt wurde?")
Questionnaire.create(:question => "Wurde sichergestellt, dass <#verb> alle Daten/Aspekte ber&uuml;cksichtigt?")
Questionnaire.create(:question => "Was geschieht, wenn man nicht <#verb> kann?")
Questionnaire.create(:question => "Was k&ouml;nnte <#verb> verhindern und was wird dann erwartet?")
Questionnaire.create(:question => "Welche m&ouml;glichen Fehleingaben m&uuml;ssen im Zusammenhang mit <#verb> abgefangen werden?")
Questionnaire.create(:question => "Welche Inhalte kommen in <#noun> vor?")
Questionnaire.create(:question => "Welche optionalen/verpflichtende Aspekte gelten f&uuml;r <#noun>?")
Questionnaire.create(:question => "Welche Inhalte von <#noun> und nach welchen Regeln soll &uuml;berpr&uuml;ft werden?")
Questionnaire.create(:question => "Wie sieht das Layout f&uuml;r <#noun> aus?")

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 1, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 2, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 3, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 4, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 5, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 6, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 7, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 8, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 9, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 10, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 11, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 12, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 13, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 14, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 15, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 16, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 17, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 18, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 19, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 20, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 21, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 22, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 23, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 24, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 25, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 26, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 27, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 28, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 29, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 30, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 31, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 32, :questionnaire_id => 14)

AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 1)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 2)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 3)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 4)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 5)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 6)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 7)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 8)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 9)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 10)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 11)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 12)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 13)
AnswersToQuestionnaire.create(:answer => "test123", :user_story_id => 33, :questionnaire_id => 14)

=begin 
  ==== USER STORIES Projekt 1 => Testprojekt 
=end
story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 5
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint1.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Optionendialog, in dem sich die Sprintlaenge konfigurieren laesst."
story.headline = "Optionsdialog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Menue in dem sich die einzelnen Dialoge aufrufen lassen."
story.headline = "Anzeigemenue"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5 
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint2.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 5 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 5
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint3.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Optionendialog, in dem sich die Sprintlaenge konfigurieren laesst."
story.headline = "Optionsdialog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 4
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Menue in dem sich die einzelnen Dialoge aufrufen lassen."
story.headline = "Anzeigemenue"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 4
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sprint4.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

=begin 
  ==== USER STORIES MIT SPRINTLOGZUORDNUNG ANLEGEN
=end

# 2tes Projekt 

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 4
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 4 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 2 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

# 3tes Projekt
story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 2
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

=begin 
  ==== USER STORIES OHNE SPRINTLOGZUORDNUNG ANLEGEN
=end
story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 1
story.user_story_state_pid = 1
story.user_story_priority_pid = 2
story.sprint_backlog_id = 1
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 2
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 5
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = 3
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 2
story.sprint_backlog_id = nil
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt eine Uebersichtsmaske, das Sprint Backlog, auf dem alle UserStories die dem Sprint zugeordnet sind angezeigt werden."
story.headline = "Sprint Backlog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = nil
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.save

=begin 
  ==== USER STORIES MIT SPRINTLOGZUORDNUNG ANLEGEN
=end
=begin
story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Optionendialog, in dem sich die Sprintlaenge konfigurieren laesst."
story.headline = "Optionsdialog"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 4
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 3
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Menue in dem sich die einzelnen Dialoge aufrufen lassen."
story.headline = "Anzeigemenue"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 6
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 4
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

# 2tes Projekt 

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5 # state 1 = offen!
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 4
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 4 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 2 # state 1 = offen!
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb2.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

# 3tes Projekt
story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 2
story.user_story_priority_pid = 3
story.sprint_backlog_id = 1
story.user_story_rating_id = 2
story.save

story = UserStory.new
story.verb = "speichern"
story.noun = "Benutzername"
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pb3.id
story.user_pid = 1
story.sprint_backlog_column_id = nil
story.user_story_state_pid = 1
story.user_story_priority_pid = 1
story.sprint_backlog_id = 1
story.user_story_rating_id = 1
story.save

Company.all.each do |c|
  Role.create(:rolename_id => 1, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 2, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 3, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 4, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
end
=end




projGraph = Project.new
projGraph.name = "Graph"
projGraph.sprint_id = 1
projGraph.company_id = comp.id
projGraph.sprint_length = 2
projGraph.max_user_stories = 100
projGraph.save
grafZahl=User.new(:name => "Graf Zahl", :email => "graf@zahl.de", :password => "testtest", :password_confirmation => "testtest", :current_project_id => projGraph.id , :company_pid => comp.id )
grafZahl.save!
ProjectToUser.create(:percentage_id => 1, :project_id => projGraph.id, :rolename_id => 1, :user_id => grafZahl.id)
pbGraph = ProductBacklog.new
pbGraph.project_pid = projGraph.id
pbGraph.save
sbgraph = SprintBacklog.new
sbgraph.project_pid = projGraph.id
sbgraph.sprint_start = DateTime.parse("11/01/2014", "%d/%m/%Y")
sbgraph.sprint_end = DateTime.parse("25/01/2014", "%d/%m/%Y") 
sbgraph.save
column1 = SprintBacklogColumn.new
column1.name = "Offen"
column1.column_position=1
column1.project_id = projGraph.id
column1.save

column2 = SprintBacklogColumn.new
column2.name = "In--leer--Bearbeitung"
column2.column_position=2
column2.project_id = projGraph.id
column2.save

column3 = SprintBacklogColumn.new
column3.name = "Fertig"
column3.column_position=3
column3.project_id = projGraph.id
column3.save

story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column1.id
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("12/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column2.id
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("13/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column3.id
story.user_story_state_pid = 5
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("14/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column1.id
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("15/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column1.id
story.user_story_state_pid = 5
story.user_story_priority_pid = 2
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("16/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save




story = UserStory.new
story.description = "Der Benutzer soll die Moeglichkeit erhalten ueber ein Interface sich mit Benutzernamen und Passwort gegen die Anwendung zu authentifizieren. Bei Fehleingabe soll eine entsprechende Meldung zurueckgegeben werden."
story.headline = "Login Interface"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column1.id
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("12/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt ein Formular mit dem neue Benutzer angelegt werden koennen. Dazu gehoert Name, Email, Rolle."
story.headline = "Benutzer anlegen Formular"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column2.id
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 4
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("13/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Uebersichtsmaske, das Product Backlog, auf dem alle UserStories uebersichtlich dargestellt und bearbeitet werden koennen."
story.headline = "Product Backlog"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column3.id
story.user_story_state_pid = 3
story.user_story_priority_pid = 1
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 3
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("14/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column1.id
story.user_story_state_pid = 3
story.user_story_priority_pid = 2
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 1
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("15/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save

story = UserStory.new
story.description = "Es gibt eine Dialog, mit dem UserStories aus dem ProductBacklog dem Sprint zugeordnet werden koennen. Dabei wird die UserStory nach Machbarkeit bewertet."
story.headline = "Story Bewertung"
story.product_backlog_pid = pbGraph.id
story.user_pid = grafZahl.id
story.sprint_backlog_column_id = column2.id
story.user_story_state_pid = 3
story.user_story_priority_pid = 2
story.sprint_backlog_id = sbgraph.id
story.user_story_rating_id = 2
story.verb = "authentifizeren"
story.noun = "Benutzer"
story.created_at = sbgraph.sprint_start
story.save
ush=UserstoryHistory.new
ush.date=story.created_at
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = 1
ush.save
ush=UserstoryHistory.new
ush.date=DateTime.parse("16/01/2014", "%d/%m/%Y")
ush.user_story_rating_id = story.user_story_rating_id
ush.userstory_id = story.id
ush.userstorystate_id = story.user_story_state_pid
ush.save





Company.all.each do |c|
  Role.create(:rolename_id => 1, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 2, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 3, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
  Role.create(:rolename_id => 4, :company_id => c.id, :ProductBacklog => true, :UserStoryCreate => true, :UserStoryDelete => true, :UserStoryEdit => true, :UserStoryAccept => true, :UserStoryPoker => true, :UserStoryToSprintBacklog => true, :SprintBacklog => true, :SprintBacklogTaskTake => true, :SprintBacklogTaskFinish => true)
end
